package nekohtml.test;

import org.cyberneko.html.HTMLElements;
import org.cyberneko.html.HTMLElements.Element;

/**
 * 
 * @author Wxg
 *
 */
public class Demo101 {

	public static void main(String[] args) {
		Element ele = null;
		ele = HTMLElements.getElement("a");
		System.out.println( ele );
		
		/**
		 * 
		 * 参考了 @see org.fit.cssbox.io.DefaultDOMSource
		 * 发现了更好的定义方式
		 */
		ele = HTMLElements.getElement(HTMLElements.A);
		Element[] eles = ele.parent;
		System.out.println("===");
		System.out.println( ele );
		for(Element e : eles){
			System.out.println( e );
		}
	}
	
}
